Optimal. Leaf size=136 \[ \frac{2 (3 A+C) \sqrt{\cos (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{d}-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 C \tan (c+d x) \sqrt{b \sec (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12765, antiderivative size = 136, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {4047, 3768, 3771, 2639, 4046, 2641} \[ \frac{2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{d}-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 C \tan (c+d x) \sqrt{b \sec (c+d x)}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4047
Rule 3768
Rule 3771
Rule 2639
Rule 4046
Rule 2641
Rubi steps
\begin{align*} \int \sqrt{b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac{B \int (b \sec (c+d x))^{3/2} \, dx}{b}+\int \sqrt{b \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx\\ &=\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C \sqrt{b \sec (c+d x)} \tan (c+d x)}{3 d}-(b B) \int \frac{1}{\sqrt{b \sec (c+d x)}} \, dx+\frac{1}{3} (3 A+C) \int \sqrt{b \sec (c+d x)} \, dx\\ &=\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C \sqrt{b \sec (c+d x)} \tan (c+d x)}{3 d}-\frac{(b B) \int \sqrt{\cos (c+d x)} \, dx}{\sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{1}{3} \left ((3 A+C) \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 (3 A+C) \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C \sqrt{b \sec (c+d x)} \tan (c+d x)}{3 d}\\ \end{align*}
Mathematica [C] time = 1.83443, size = 249, normalized size = 1.83 \[ \frac{\sqrt{b \sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac{4 \cos (c+d x) (3 B \csc (c) \cos (d x) \cos (c+d x)+C \sin (c+d x))}{d}-\frac{i e^{-3 i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{5/2} \left (\left (-1+e^{2 i c}\right ) (3 A+C) e^{i (c+d x)} \text{Hypergeometric2F1}\left (\frac{1}{4},\frac{1}{2},\frac{5}{4},-e^{2 i (c+d x)}\right )+3 B \left (-1+e^{2 i c}\right ) \text{Hypergeometric2F1}\left (-\frac{1}{4},\frac{1}{2},\frac{3}{4},-e^{2 i (c+d x)}\right )+3 B \sqrt{1+e^{2 i (c+d x)}}\right )}{\left (-1+e^{2 i c}\right ) d}\right )}{3 (A \cos (2 (c+d x))+A+2 B \cos (c+d x)+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.279, size = 647, normalized size = 4.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt{b \sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec{\left (c + d x \right )}} \left (A + B \sec{\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]